package com.xin.di.uav.applet.resp;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class PaymentBillResp {


    private int total;

    private List<PaymentBillResp.Record> recordList = new ArrayList<>();

    @Data
    public static class Record {

        @ExcelIgnore
        private String id;
        @ExcelIgnore
        private Date createTime;

        @ExcelProperty(value = "交易时间", index = 6)
        private Date updateTime;

        @ExcelProperty(value = "支付渠道", index = 7)
        private String payChannel;

        @ExcelProperty(value = "备注", index = 8)
        private String remark;

        @ExcelIgnore
        private String orderId;

        @ApiModelProperty("支付状态")
        @ExcelProperty(value = "支付状态", index = 3)
        private Integer payStatus;


        @ApiModelProperty("第三方订单号")
        @ExcelProperty(value = "渠道支付流水号", index = 1)
        private String otherOrderNo;

        @ApiModelProperty("用户id")
        private String userId;
        @ApiModelProperty("退款失败原因")
        @ExcelIgnore
        private String refundFailedReason;

        @ApiModelProperty("订单类型，1收入2退款")
        @ExcelProperty(value = "类型", index = 2)
        private Integer type;
        @ExcelProperty(value = "订单编号", index = 0)
        @ApiModelProperty("订单编号")
        private String tcWaybillNo;

        @ApiModelProperty("实际支付金额")
        @ExcelProperty(value = "交易金额", index = 4)
        private BigDecimal pricePaid;

        @ApiModelProperty("币种")
        @ExcelProperty(value = "币种", index = 5)
        private String coinType;

        @ExcelIgnore
        @ApiModelProperty("处理人")
        private String processedBy;

    }
}
